package com.socialuni.sdk.api;

import com.socialuni.sdk.api.model.ResultRO;
import com.socialuni.sdk.model.RO.CosAuthRO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import java.io.IOException;

@RequestMapping("socialuni/cos")
@FeignClient(name = "cos", url = "${social.server-url:https://api.socialuni.com}")
public interface CosAPI extends FeignAPI {
    @PostMapping("getCosAuthorization")
    ResultRO<CosAuthRO> getCosAuthorization() throws IOException;
}